<%-- 
    Document   : contact
    Created on : Oct 27, 2010, 12:53:06 PM
    Author     : markel
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<jsp:useBean id="LanguageSelector" class="resources.LanguageSelector" scope="session" />
<jsp:useBean id="CartController" class="kokonut.shop.cart.CartController" scope="session" />
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Kokonut Web :: Contact</title>
        <style type="text/css" media="all">@import
		"pageStyle.css";</style>
		<link  href="//fonts.googleapis.com/css?family=Raleway:100" rel="stylesheet" type="text/css" >
		<link  href="//fonts.googleapis.com/css?family=Inconsolata:regular" rel="stylesheet" type="text/css" >
		<link  href="//fonts.googleapis.com/css?family=Droid+Sans:regular,bold" rel="stylesheet" type="text/css" >
    </head>
    <body>
        <div id="regionSwitcher">
                <fmt:setLocale value="<%=LanguageSelector.getLocaleName()%>" scope="session" />
                <div id="languages">
                	<ul>
                	<li id="euskara"><a href="/selectLocale?locale=eu_ES&url=contact"><b>euskara</b></a></li>
                	<li id="castellano"><a href="/selectLocale?locale=es_ES&url=contact"><b>castellano</b></a></li> 
                	<li id="english"><a href="/selectLocale?locale=en_UK&url=contact"><b>english</b></a></li>
                	</ul>
                </div>
            </div>
            <fmt:bundle basename="ApplicationResources">
            <div id="pageContainer">
            	<div id="menu">
                    <ul>
                        <li id="home"><a href="/"><b><fmt:message key="home" /></b></a></li>
                        <li id="store"><a href="/shop"><b><fmt:message key="shop" /></b></a></li>
                        <li id="blog"><a href="/blog"><b><fmt:message key="blog" /></b></a></li>
                        <li id="contact"><a href="/contact"><b><fmt:message key="contact" /></b></a></li>
                    </ul>
                </div>
                <div id="header">
	                <div id="cartPlace"><a href="/cart">
	                    <img src="images/Cart.png" alt="cart image">
	                	<% if(CartController.getNumberOfProducts()==0)
	                	   {
	                	%>
	                	<fmt:message key="emptyCart" />
	                	<%}
	                	else
	                	{
	                	%>
	                	<fmt:message key="cart" />: <%=CartController.getNumberOfProducts()%> <fmt:message key="products" />
	                	<%}
	                	%>
	                	<br/>
	                	<fmt:message key="totalPrice" />: <%=CartController.getTotalPrice()%> €
	                	</a>
	                </div>
                   	<h1>KokonutCompany</h1>
               	</div>
               	<div id="sidebar">
               		Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
               	</div>
                <div class="content">
                    <form action="/sendContact" method="post">
                        <fmt:message key="name" /> : <input type="text" name="name"/><br/>
                        <fmt:message key="emailAdress" /> : <input type="text" name="emailAdress"/><br/>
                        <fmt:message key="contactReason" />
                        <select name="contactReason">
                            <option value="0" selected>(<fmt:message key="pleaseSelect" />:)</option>
                            <option value="Reclamacion"><fmt:message key="complaint" /></option>
                            <option value="Sugerencia"><fmt:message key="suggestion" /></option>
                            <option value="Otros"><fmt:message key="others" /></option>
                        </select><br/>
                        <fmt:message key="contactBody" /> : <br/>
                        <textarea cols="50" rows="20" name="contactBody"></textarea><br/>
                        <input type="submit" value="<fmt:message key="send" />" name="sendButton"/>
                    </form>
                <div id="footer">
                	<div id="altNav"><a href="/"><fmt:message key="home" /></a> | <a href="/shop"><fmt:message key="shop" /></a> | <a href="/blog"><fmt:message key="blog" /></a> | <a href="/contact"><fmt:message key="contact" /></a></div>
                	<div id="communicator"> Tuenti | Facebook | Twitter</div>
                	<div id="admin"><a href="/admin">Admin</a></div>
                </div>
            </div>
        </fmt:bundle>
    </body>
</html>